<?xml version="1.0" encoding="ISO-8859-1"?> 
<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
   xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
   xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
   version="1.0"
   >
  <xsl:strip-space elements="shape text"/>
  <xsl:output method="xml" indent="true"/>
  <xsl:template match="/presentation/slide">
    <data>
      <xsl:apply-templates/>
    </data>
  </xsl:template>
  <xsl:template match="shape">
    <xsl:variable name="fillcolor" select="@color"/>
    <p:sp>
      <p:nvSpPr>
	<p:cNvPr id="{$xid}" name="Shape {@id}">
	  <xsl:attribute name="id">
	    <xsl:value-of select="transalte(@id,'id','11')"/>
	  </xsl:attribute>
	  <xsl:attribute name="name">
	    <xsl:value-of select="'Shape {@id}'"/>
	  </xsl:attribute>
	</p:cNvPr>
	<p:cNvSpPr txBox="true"/>
      </p:nvSpPr>
      <p:spPr>
	<a:prstGeom prst="irregularSeal1">
	  <xsl:attribute name="prst">
	    <xls:value-of select="'@{type}'"/>
	  </xsl:attribute>
	<a:ln w="50">
	  <a:solidFill>
	    <a:prstClr val="{@color}"/>
	  </a:solidFill>
	</a:ln>
	<a:solidfill>
	  <a:prstClr val="{@color}"/>
	</a:solidfill>
	<a:xfrm>
	  <a:off x="83822" y="86360"/>
	  <a:ext cx="4210957" cy="410641"/>
	</a:xfrm>
      </p:spPr>
      <p:txBody>
	<a:bodyPr anchor="ctr" anchorCtr="1">
	</a:bodyPr>
	<a:lstStyle/>
	<a:p>
	  <a:r sz="1200">
	    <a:rPr lang="en-US" smtClean="0"/>
	    <a:t><xsl:apply-templates select="text()|text"/></a:t>
	  </a:r>
	  <a:endParaRPr lang="en-US" />
	</a:p>
      </p:txBody>
    </p:sp>
  </xsl:template>
  <xsl:template match="tree">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="top">
    <xsl:variable name="pid" select="translate(@id,'id','11')"/>
    <xsl:for-each select="child">
      <xsl:variable name="cid" select="translate(@id,'id','11')"/>
      <p:cxnSp>
	<p:nvCxnSpPr>
	  <p:cNvCxnSpPr>
	    <a:stCxn id="{$pid}" idx="1">
	    </a:stCxn>
	    <a:endCxn id="{$cid}" idx="1">
	    </a:endCxn>
	  </p:cNvCxnSpPr>
	  <p:spPr>
	    <a:ln w="10">
	      <a:solidFill>
		<a:prstClr val="black"/>
	      </a:solidFill>
	      <a:tailend type="arrow">
	      </a:tailend>
	    </a:ln>
	  </p:spPr>
	</p:nvCxnSpPr>
      </p:cxnSp>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
